package org.sump.data;

import java.util.List;

/**
 * Auxiliary interface for Resources with children. 
 * @author Sergey Grigorchuk (sergey.grigorchuk@gmail.com)
 */
public interface HasChildren {
	
	/**
	 * Children of the resource
	 * @return children of the resource
	 */
	List<Resource> getChildren();

	/**
	 * Finds and returns child resource by name and resource type
	 * @param name name of resource to be find
	 * @param resourceType resource type
	 * @return child resource by name and resource type
	 */
	Resource getChild(String name, ResourceType resourceType);
}
